<?php

declare(strict_types=1);
/**
 * 创建人 : Forpastime
 *
 * @link     http://hypercmf.com
 * @document https://hyperf.wiki
 * @contact  forpastime@qq.com
 * @git  https://gitee.com/hypercmf/hypercmf1.0.git
 */
namespace App\Controller\Admin;

use App\Controller\AdminBaseController;
use App\Service\FileService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\AutoController;
use App\Middleware\Auth\AdminPowerMiddleware;
use Hyperf\HttpServer\Annotation\Middleware;
use Hyperf\HttpServer\Annotation\Middlewares;

/**
 * @AutoController
 */
#[AutoController]
class IndexController extends AdminBaseController
{
    public function home()
    {
        $composer = file_get_contents('./composer.json');
        $composer = json_decode($composer,true);
        return $this->fetch('admin/home',['devtool'=>$composer['require-dev']]);
    }

}
